Difference between value type and reference type Anonymous User95408-Apr-2018c#c# Updated on 24-Sep-2020
Anonymous User
08-Apr-2018Value type
It store within stack memory.
The example of reference type are Structure,all primitive data type except string and enum.
Reference type
reference type store within heap memory.
Class, string, array, delegate, interface is the example of reference type.